package com.zwh.nacos;//package com.zwh.nacos;
//
//import com.alibaba.nacos.api.NacosFactory;
//import com.alibaba.nacos.api.config.ConfigService;
//import com.alibaba.nacos.api.exception.NacosException;
//import com.alibaba.nacos.client.config.NacosConfigService;
//
//import java.util.Properties;
//
//public class NacosTest {
//    public static void main(String[] args) throws NacosException {
//        //nacos 地址
//        String serverAddr = "127.0.0.1:8848";
//        //Data Id
//        String dataId = "nacos‐simple‐demo.yaml";
//        //Group
//        String group = "DEFAULT_GROUP";
//        Properties properties = new Properties();
//        properties.setProperty("serverAddr",serverAddr);
////        properties.setProperty("",);
//        ConfigService configService = NacosFactory.createConfigService(properties);
//        //获取配置,String dataId, String group, long timeoutMs
//        String content = configService.getConfig(dataId, group, 5000);
//        System.out.println(content);
//
//    }
//}
